/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ReportManagement.java
 *
 * Created on Aug 11, 2010, 2:57:28 PM
 */

package Gui;

import BusinessLogic.GenerateReports;

/**
 *
 * @author Administrator
 */
public class pnReport extends javax.swing.JPanel {

    /** Creates new form ReportManagement */
    private GenerateReports gr;
    public pnReport() {
        initComponents();

        //Create object
        gr = new GenerateReports();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnExhibi = new javax.swing.JPanel();
        lbSource = new javax.swing.JLabel();
        lblfinacial = new javax.swing.JLabel();
        lbSource1 = new javax.swing.JLabel();
        lblCashbyDate = new javax.swing.JLabel();
        lbSource2 = new javax.swing.JLabel();
        lblDetailBoothtrail = new javax.swing.JLabel();
        pnExhibi1 = new javax.swing.JPanel();
        lbSource3 = new javax.swing.JLabel();
        lblReports = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));

        pnExhibi.setBackground(new java.awt.Color(255, 255, 255));
        pnExhibi.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "General Reports", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        pnExhibi.setLayout(null);

        lbSource.setText("<html>\n View all information about exhibitor financial list.<br>\n<b>Notes:</b><br>\nWhen change information of Booth, System automatically updates exhibitor accounts\n</html>");
        pnExhibi.add(lbSource);
        lbSource.setBounds(30, 20, 480, 50);

        lblfinacial.setBackground(new java.awt.Color(255, 255, 255));
        lblfinacial.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblfinacial.setForeground(new java.awt.Color(0, 70, 213));
        lblfinacial.setText("<html> <u>Read Report</u> </html>");
        lblfinacial.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                lblfinacialMousePressed(evt);
            }
        });
        pnExhibi.add(lblfinacial);
        lblfinacial.setBounds(470, 70, 80, 20);

        lbSource1.setText("<html>\n View all information about booth audit trail.<br>\n</html>");
        pnExhibi.add(lbSource1);
        lbSource1.setBounds(30, 110, 480, 30);

        lblCashbyDate.setBackground(new java.awt.Color(255, 255, 255));
        lblCashbyDate.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblCashbyDate.setForeground(new java.awt.Color(0, 70, 213));
        lblCashbyDate.setText("<html> <u>Read Report</u> </html>");
        lblCashbyDate.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                lblCashbyDateMousePressed(evt);
            }
        });
        pnExhibi.add(lblCashbyDate);
        lblCashbyDate.setBounds(470, 210, 80, 20);

        lbSource2.setText("<html>\n View all information about cash receipts by date.\n</html>");
        pnExhibi.add(lbSource2);
        lbSource2.setBounds(30, 180, 480, 30);

        lblDetailBoothtrail.setBackground(new java.awt.Color(255, 255, 255));
        lblDetailBoothtrail.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblDetailBoothtrail.setForeground(new java.awt.Color(0, 70, 213));
        lblDetailBoothtrail.setText("<html> <u>Read Report</u> </html>");
        lblDetailBoothtrail.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                lblDetailBoothtrailMousePressed(evt);
            }
        });
        pnExhibi.add(lblDetailBoothtrail);
        lblDetailBoothtrail.setBounds(470, 150, 80, 20);

        pnExhibi1.setBackground(new java.awt.Color(255, 255, 255));
        pnExhibi1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Personal Reports", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        pnExhibi1.setLayout(null);

        lbSource3.setText("<html>\n deposit slips, statements, accounting summary reports and status reports.\n<b>Notes:</b><br>\nThe Report above  all related to a Exhibitor\n</html>");
        pnExhibi1.add(lbSource3);
        lbSource3.setBounds(30, 20, 480, 60);

        lblReports.setBackground(new java.awt.Color(255, 255, 255));
        lblReports.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblReports.setForeground(new java.awt.Color(0, 70, 213));
        lblReports.setText("<html> <u>Details</u> </html>");
        lblReports.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                lblReportsMousePressed(evt);
            }
        });
        pnExhibi1.add(lblReports);
        lblReports.setBounds(490, 90, 60, 20);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(pnExhibi1, javax.swing.GroupLayout.PREFERRED_SIZE, 560, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(22, Short.MAX_VALUE))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(21, 21, 21)
                    .addComponent(pnExhibi, javax.swing.GroupLayout.PREFERRED_SIZE, 560, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(21, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(313, Short.MAX_VALUE)
                .addComponent(pnExhibi1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(21, 21, 21))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(20, Short.MAX_VALUE)
                    .addComponent(pnExhibi, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(150, 150, 150)))
        );

        getAccessibleContext().setAccessibleParent(this);
    }// </editor-fold>//GEN-END:initComponents

    private void lblfinacialMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblfinacialMousePressed
        // TODO add your handling code here:
        gr.financialList();
}//GEN-LAST:event_lblfinacialMousePressed

    private void lblCashbyDateMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblCashbyDateMousePressed
        // TODO add your handling code here:
        gr.receiptsByDate();
    }//GEN-LAST:event_lblCashbyDateMousePressed

    private void lblReportsMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblReportsMousePressed
        // TODO add your handling code here:
        DLBooth bo = new DLBooth(null, true);
        bo.setVisible(true);
}//GEN-LAST:event_lblReportsMousePressed

    private void lblDetailBoothtrailMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblDetailBoothtrailMousePressed
        // TODO add your handling code here:
        gr.auditTrail();
    }//GEN-LAST:event_lblDetailBoothtrailMousePressed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lbSource;
    private javax.swing.JLabel lbSource1;
    private javax.swing.JLabel lbSource2;
    private javax.swing.JLabel lbSource3;
    private javax.swing.JLabel lblCashbyDate;
    private javax.swing.JLabel lblDetailBoothtrail;
    private javax.swing.JLabel lblReports;
    private javax.swing.JLabel lblfinacial;
    private javax.swing.JPanel pnExhibi;
    private javax.swing.JPanel pnExhibi1;
    // End of variables declaration//GEN-END:variables

}
